import request from '@/utils/request'

// 查询连续机况列表
export function listSituation(query) {
  return request({
    url: '/funConfig/situation/list',
    method: 'get',
    params: query
  })
}

// 查询连续机况详细
export function getSituation(nowRCode) {
  return request({
    url: '/funConfig/situation/' + nowRCode,
    method: 'get'
  })
}

// 新增连续机况
export function addSituation(data) {
  return request({
    url: '/funConfig/situation',
    method: 'post',
    data: data
  })
}

// 修改连续机况
export function updateSituation(data) {
  return request({
    url: '/funConfig/situation',
    method: 'put',
    data: data
  })
}

// 删除连续机况
export function delSituation(nowRCode) {
  return request({
    url: '/funConfig/situation/' + nowRCode,
    method: 'delete'
  })
}
